
package com.nanyang.tms.api.dto.request.companysender;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.nanyang.common.core.domain.ApiRequest;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * <p>Description:企业发件人请求参数</p>
 * 
 * @author
 * @date 2020年11月11日 上午10:02:18
 * @Copyright Copyright (c) 2020 www.nanyang.cn Inc. All rights reserved.
 */
@Data
public class CompanySenderAddRequest extends ApiRequest {
	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 1L;


	@JsonIgnore
	private String pin;

	/**
	 * 企业编码
	 */
	@JsonIgnore
	private String companyCode;

	/**
	 * 发件人姓名
	 */
	@NotEmpty(message = "发件人姓名不能为空")
	@Length(max = 50, message = "senderName长度需小于50个字符")
	private String senderName;

	/**
	 * 发件人公司名
	 */
	@Length(max = 200, message = "senderCompanyName长度需小于200个字符")
	private String senderCompanyName;

	/**
	 * 发件人国家编码
	 */
	@NotEmpty(message = "发件人国家编码不能为空")
	@Length(max = 3, message = "senderCountyCode长度需小于3个字符")
	private String senderCountyCode;

	/**
	 * 发件人国家名称
	 */
	@NotEmpty(message = "发件人国家编码不能为空")
	@Length(max = 50, message = "senderCountyName长度需小于50个字符")
	private String senderCountyName;
	/**
	 * 州省
	 */
	@Length(max = 10, message = "provinceCode长度需小于10个字符")
	private String provinceCode;
	/**
	 * 发件人州省
	 */
	@Length(max = 50, message = "province长度需小于50个字符")
	private String province;

	/**
	 * 发件人城市
	 */
	@Length(max = 60, message = "city长度需小于60个字符")
	private String city;

	/**
	 * 发件人地址
	 */
	@NotEmpty(message = "发件人地址不能为空")
	@Length(max = 512, message = "address长度需小于512个字符")
	private String address;

	/**
	 * 邮政编码
	 */
	@Length(max = 10, message = "zipCode长度需小于10个字符")
	private String zipCode;

	/**
	 * 发件人电话
	 */
	@Length(max = 50, message = "tel长度需小于50个字符")
	private String tel;

	/**
	 * 发件人手机
	 */
	@Length(max = 50, message = "moblie长度需小于50个字符")
	private String moblie;

	/**
	 * 发件人邮箱
	 */
	@Length(max = 50, message = "email长度需小于50个字符")
	private String email;

	@Override
	public void requestCheck() {

	}

}
